home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 118 / cd-rom 118.iso / aplic / open / openofficeorg2.cab / layoutF.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2004-11-27  |  4.9 KB  |  160 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. #/*************************************************************************
  4. #
  5. #   $RCSfile: layoutF.xsl,v $
  6. #
  7. #   $Revision: 1.2 $
  8. #
  9. #   last change: $Author: kz $ $Date: 2004/05/19 15:03:01 $
  10. #
  11. #   The Contents of this file are made available subject to the terms of
  12. #   either of the following licenses
  13. #
  14. #          - GNU Lesser General Public License Version 2.1
  15. #          - Sun Industry Standards Source License Version 1.1
  16. #
  17. #   Sun Microsystems Inc., October, 2000
  18. #
  19. #   GNU Lesser General Public License Version 2.1
  20. #   =============================================
  21. #   Copyright 2000 by Sun Microsystems, Inc.
  22. #   901 San Antonio Road, Palo Alto, CA 94303, USA
  23. #
  24. #   This library is free software; you can redistribute it and/or
  25. #   modify it under the terms of the GNU Lesser General Public
  26. #   License version 2.1, as published by the Free Software Foundation.
  27. #
  28. #   This library is distributed in the hope that it will be useful,
  29. #   but WITHOUT ANY WARRANTY; without even the implied warranty of
  30. #   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  31. #   Lesser General Public License for more details.
  32. #
  33. #   You should have received a copy of the GNU Lesser General Public
  34. #   License along with this library; if not, write to the Free Software
  35. #   Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  36. #   MA  02111-1307  USA
  37. #
  38. #
  39. #   Sun Industry Standards Source License Version 1.1
  40. #   =================================================
  41. #   The contents of this file are subject to the Sun Industry Standards
  42. #   Source License Version 1.1 (the "License"); You may not use this file
  43. #   except in compliance with the License. You may obtain a copy of the
  44. #   License at http://www.openoffice.org/license.html.
  45. #
  46. #   Software provided under this License is provided on an "AS IS" basis,
  47. #   WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
  48. #   WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
  49. #   MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
  50. #   See the License for the specific provisions governing your rights and
  51. #   obligations concerning the Software.
  52. #
  53. #   The Initial Developer of the Original Code is: Sun Microsystems, Inc.
  54. #
  55. #   Copyright: 2000 by Sun Microsystems, Inc.
  56. #
  57. #   All Rights Reserved.
  58. #
  59. #   Contributor(s): _______________________________________
  60. #
  61. #
  62. #
  63. #*************************************************************************
  64. -->
  65. <!-- =================================================
  66.  
  67. This template is a skeleton for single level TOC pages 
  68. with Frames : it generates the main index.html which contains
  69. the frameset.
  70.  
  71. Do not overwrite this ! copy it and complete the missing
  72. code.
  73.  
  74. I use the @ character whereever there is a missing code, so 
  75. you can use a simple find to navigate and find the
  76. places...
  77.  
  78. ====================================================== -->
  79.  
  80. <xsl:stylesheet version="1.0" 
  81.    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  82.     xmlns="http://www.w3.org/1999/xhtml">
  83.  
  84.     <xsl:output method               = "html"
  85.                 media-type           = "text/html"
  86.                 indent               = "yes"
  87.                 doctype-public       = "-//W3C//DTD HTML 4.0 Transitional//EN"
  88.                 omit-xml-declaration = "yes"
  89.                 standalone           = "yes" />
  90.     
  91.     <xsl:include href="../layout.xsl"/>
  92.     
  93.  
  94.      <!-- =============================
  95.                    ROOT
  96.      ================================== -->
  97.  
  98.  
  99.     <xsl:template  match="/">
  100.           <html>
  101.                    <xsl:call-template name="head"/>
  102.                   <xsl:call-template name="frameset"/>
  103.            </html>
  104.      </xsl:template>
  105.      
  106.      
  107.      <!-- =============================
  108.                    HTML FRAMES
  109.      ================================== -->
  110.      
  111.     
  112.     <xsl:template name="frameset">
  113.  
  114.         <!--
  115.             @ Add frameset here...
  116.             
  117.               the following noframes tag is
  118.               naturally optional.
  119.             -->
  120.         
  121.         <noframes/>
  122.         
  123.         <!-- the body tag has no influance here,
  124.             we add it for good style.
  125.             -->
  126.             
  127.         <body>
  128.         </body>
  129.     </xsl:template>
  130.     
  131.  
  132.      <!-- =============================
  133.                    HTML HEAD
  134.                    
  135.     this section should not be changed
  136.      ================================== -->
  137.      
  138.      <xsl:template name="head">
  139.          <head>
  140.                 <title>
  141.                      <xsl:value-of select="/session/general-info/@title"/>
  142.                 </title>
  143.                 <!-- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> -->
  144.                 <meta HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=UTF-8"/>
  145.                 <meta name="description" content="{/session/general-info/@description}"/>
  146.                 <meta name="keywords" content="{/session/general-info/@keywords}"/>
  147.                 <meta name="author" content="{/session/general-info/@author}"/>
  148.                 <meta name="email" content="{/session/general-info/@email}"/>
  149.                 <meta name="copyright" content="{/session/general-info/@copyright}"/>
  150.                 <!-- create date?
  151.                      update date?
  152.                      fav icon?
  153.                      -->
  154.              <link href="style.css" rel="stylesheet" type="text/css"/>
  155.  
  156.         </head>
  157.      </xsl:template>
  158.     
  159. </xsl:stylesheet>
  160.